package com.shao.demo.feignconsumer.rpc.fallback;

import com.shao.demo.feignconsumer.common.constans.StatusCode;
import com.shao.demo.feignconsumer.rpc.HelloService;
import com.shao.demo.feignconsumer.common.wapper.ResponseEntityWrapper;
import org.springframework.stereotype.Component;

/**
 * @author zhiqi.shao
 * @Date 2018/5/23 17:17
 */
@Component
public class HelloServiceFallback implements HelloService {

    @Override
    public ResponseEntityWrapper sayHello(String name) {
        return ResponseEntityWrapper.error(StatusCode.HTTP_RESPONSE_ERROR);
    }
}
